import Axios from 'axios'

const axiosInstance = Axios.create({
    baseURL: 'http://localhost:8080/static',
    timeout: 2000,
});
const localrequest = {

    get: function (url) {
        return Axios.get(url)
    },
    getData: function (url) {
        return axiosInstance.get('/' + url)
        // .then(res=>{
        //     console.log(res.data)
        //     return res.data;
        // })
    }

}
export default localrequest